package io.github.biezhi.elves.common;

import java.util.UUID;

public class Constants {
	private Constants() {}
	public static final String UUID_KEY = UUID.randomUUID().toString();
	
	public static boolean IS_PROXY = false;
	public static boolean IS_PROXY_IP = false;
	//代理IP
//	public static String PROXY_IP = "10.18.97.76";
	public static String PROXY_IP = "132.122.1.4";
//	public static String PROXY_IP = "120.52.73.27";
	
//	代理ip 端口
//	public static Integer PROXY_PORT = 3128;
	public static Integer PROXY_PORT = 9898;
//	public static Integer PROXY_PORT = 80;
	
	//正则表达式匹配中文字符串
	public static final String REPLACE_CN = "[\u4e00-\u9fa5]";
	public static final String REPLACE_RMB = "人民币";
	public static final String REPLACE_WRMB = "万人民币";
	public static final String REPLACE_WANYUAN = "万元";
	public static final String REPLACE_HENG_STR = "-";
	public static final String REPLACE_MEIYUAN = "(美元)";
	
	//chrome浏览器驱动路径
	public static final String CHROME_DRIVER_PATH = "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chromedriver.exe";
	//记录chrome浏览器用户操作记录
	public static final String CHROME_USER_DATA = "C:\\Users\\asus-pc\\AppData\\Local\\Google\\Chrome\\User Data";
	
	//定义爬取量(初始化为20)
	public static int HANDLE_RUN = 20;
	
	//企查查爬取状态(0:爬取正常;1:爬取频繁;2:爬取需登录)
	public static String QCC_PAQU_STATE = "0";
	//企查查频繁、超时等操作登录后直接返回指定页面前缀链接
	public static String QCC_BACK_URL1 = "http://www.qichacha.com/index_verify?type=companysearch&back=";
	public static String QCC_BACK_URL2 = "http://www.qichacha.com/index_verify?type=companysearch&back=/";
	//企查查url访问阻断错误内容
	public static final String QCC_ERROR_CONTENT = "很抱歉，由于您访问的URL有可能对网站造成安全威胁，您的访问被阻断。";
	
	//谷歌浏览器后台程序名称
	public static final String CHROME_PROCESS_NAME = "chrome.exe";
	//谷歌浏览器驱动后台程序名称
	public static final String CHROME_DRIVER_PROCESS_NAME = "chromedriver.exe";
	
	//更新数据页码
	public static final int UPDATE_PAGE_SIZE = 100;
	
	//公告操作方式
	public static final Integer NOTICE_OPERATION_MODE = 1;
	
	/*==============================企查查常量数据 开始====================================================*/
	//企查查首页地址
	public static final String QCC_INDEX_URL = "http://www.qichacha.com";
	/*==============================企查查常量数据 结束====================================================*/
	
	public static final String JSON_STRING = "string";
	public static final String JSON_ARRAY = "array";
	

	public static final String[] NOTICE_NAME_KEYWORDS = new String[] {
		"中标公告", "中标结果", "中标结果公告", "中标、成交公告", "中标、成交结果公告", "结果公示公告",
		"中标、成交结果调整公告", "中标结果调整公告", "中标（成交）公告", "中标结果公示",
		"中标、成交", "中标公示"
	};
	
	public static final String[] CITY_NAMES = new String[] {
		"广州", "深圳", "东莞", "佛山", "汕头", "中山", "惠州", "江门", "揭阳",
		"湛江", "珠海", "茂名", "肇庆", "梅州", "潮州", "韶关", "清远", "汕尾","阳江",
		"河源", "云浮", "广东省", "广东"
	};
}